// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.statement.SQLAlterStatement;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlRenameSequenceStatement.h"
#include "../../../../ast/SQLName.h"
#include "../../visitor/MySqlASTVisitor.h"

void MySqlRenameSequenceStatement::accept0(MySqlASTVisitor_ptr v)
{
  if (v->visit(SharedObject(MySqlRenameSequenceStatement)))
  {
    if (name != nullptr)
    {
      name->accept(v);
    }
    if (to != nullptr)
    {
      to->accept(v);
    }
  }
  v->endVisit(SharedObject(MySqlRenameSequenceStatement));
}

SQLName_ptr MySqlRenameSequenceStatement::getName()
{
  return name;
}

void MySqlRenameSequenceStatement::setName(SQLName_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(MySqlRenameSequenceStatement));
  }
  this->name = x;
}

SQLName_ptr MySqlRenameSequenceStatement::getTo()
{
  return to;
}

void MySqlRenameSequenceStatement::setTo(SQLName_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(MySqlRenameSequenceStatement));
  }
  this->to = x;
}
